<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>对外招聘</title>
<script type="text/javascript" src="../static/easyui/jquery.min.js"></script>
<script type="text/javascript" src="../static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../static/easyui/locale/easyui-lang-zh_CN.js"></script>
<link rel="stylesheet" href="../static/easyui/themes/icon.css">
<link rel="stylesheet" href="../static/easyui/themes/metro-orange/easyui.css">
<style type="text/css">
    
</style>

</head>
<body>
   <script type="text/javascript">
        $(function(){
			//初始化表格
			$('#duiwai').datagrid({
			    url:'duiwaichaxun',
			    columns:[[
					/* {field:'RSEID',width:2,title:'简历编号',align:'center'}, */
					{field:'RSENAME',width:2,title:'姓名',align:'center'},
					{field:'RFSNAME',width:2,title:'学历',align:'center'},
					{field:'POTZW',width:2,title:'应聘职位',align:'center'},
					{field:'RSEXZ',width:2,title:'理想薪资',align:'center'},
					{field:'RSESTAT',width:2,title:'应聘进度',align:'center',
						formatter:function(value,row,index){
							if(value==""){
								return "待审核"
							}else if(value=="1"){
								return "已通过初步审核"
							}else if(value=="2"){
								return "未通过初步审核"
							}else if(value=="3"){
								return "考试进行中"
							}else{
							    return "错误进度"	
							}
						}
					},
					{field:'caozuo',width:2,title:'操作',align:'center',
						formatter:function(value,row,index){
							return "<span onclick='chakan()'>查看简历详情</span>";
							//<span onclick='chubu()' id='chubu'>初步审核</span>/\
							//<span onclick='ceshi()' id='ceshi'>测试记录</span>/\
							//<span onclick='zuizhong()' id='zuizhong'>最终审核</span>
						}
					}
			    ]],
			    pagination:true,
			    pageNumber:1,
			    pageSize:10,
			    pageList:[10,20,30]
			});
			//查询按钮
			$("#duiwai_anniu").click(function(){
				var sskuang=$("#duiwai_kuang").val();
				$("#duiwai").datagrid("load",{
					w:sskuang
				})
				
			});
			$("#jihuaid").click(function(){
				var jihuakuang=$("#jihuaid").val();
			    $("#duiwai").datagrid("load",{
			    	d:jihuakuang
			    })
			}); 
			
		});

        //查看简历详情
        function chakan(){
			var rows=$('#duiwai').datagrid("getChecked");
			//alert(rows[0].RSEID);
			//alert(rows[0].ALTID);
			$.ajax({
				type:"post",
				url:'jianliid', //数据源地址
				data:{rseid:rows[0].RSEID, altid:rows[0].ALTID},
				success: function(data){
					adds("简历详情","oyp/recruit-jianli");
				}
				
			})
		};
       ////初步审核
       //function chubu(){
       //	adds("初步审核","oyp/recruit-chushenhe");
       //}
       ////测试记录
       //function ceshi(){
       //	adds("测试记录","oyp/recruit-kaoshi");
       //}
    </script>
<div class="full_scr bj_home">
	<div class="bj_img" style="background-image:${hopa.perPmsZts[0].ztback}"></div>
	<div class="bj_txt">
		<div class="bj_small bj_s_w7">
		    <div class="duiwaibox">
		       <div class="topbox">
		           <div class="sousuobox">
		              <input type="text" id="duiwai_kuang" style="height:30px;font-size:20px;"placeholder="请输入职位">
		              <input type="button" id="duiwai_anniu" value="搜索" class="sousuoan">
		              <%-- <select id="jihuaid" class="kkssa" style="font-size:17px;margin-left:15px;height:27px;">
		                  <option>请选择计划</option>
					      <c:forEach items="${jihuanames }" var="jihua">
					      	  <option id="jihuaid_ss" style="font-size:17px;" value="${jihua.ALTID }">${jihua.ALTID }</option>
					      </c:forEach>
					  </select> --%>
		           </div>
		       </div>
		       <div class="biaobox">
		             <table id="duiwai" class="easyui-datagrid"
		                data-options="width:1000,fitColumns:true,height:400,singleSelect: true">
		             </table>
		        </div>
		    </div>
		</div>
	</div>
</div>
</body>
</html>